<?php
<<<<<<< HEAD
// namespace app\index\model;
// use think\Db;

// class Aaaa extends Db
// {
// 	public function Insert()
// 	{
// 		return Db::name('user')->where('id','>',1)->select();
// 	}
	
// }

=======
>>>>>>> 30d92055e9c414d4b857afd0613e979a055c3b0c
namespace app\admin\model;
use think\Model;
class Aaaa extends Model
{
	public function __construct()
	{
		
			$this->name='user';
	}
	public function Insert()
	{
		$this->username = '流年9';
		$this->email = 'thinkphp@qq.com';
		$this->phone = '1231231231';
		$this->sex = '男';
		$this->pwd = strtotime('1977-03-05');
		if ($this->save()) {
		return '新增成功';
		} else {
		return $this->getError();
		}
	}
}
